<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="StyleSheet" href="themes01/default/dtree.css" type="text/css" />
<link rel="StyleSheet" href="themes01/default/1201.css" type="text/css" />
<script type="text/javascript" src="javascripts01/dtree.js"></script>
<script language="javascript" src="javascripts01/1201.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
if ($_GET[type]=='1'){
$news_title='个人文件柜';
$nums=24;
$sqlnumeid=3;
}elseif($_GET[type]=='2'){
$news_title='公共文件柜';
$nums=107;
$sqlnumeid=9;
}elseif($_GET[type]=='3'){
$news_title='网络硬盘';
$nums=109;
$sqlnumeid=9;
}elseif($_GET[type]=='4'){
$news_title='下载列表';
$nums=65;
$sqlnumeid=9;
}elseif($_GET[type]=='5'){
$news_title='规章制度';
$nums=66;
$sqlnumeid=9;
}elseif($_GET[type]=='6'){
$news_title='报表中心';
$nums=110;
$sqlnumeid=9;
}else{
}
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$sqlnumeid."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<div id="MainBody">

<form name="savefrom1" method="post" action="admin.php?ac=file_type&fileurl=document">
<input type="hidden" id="do" name="do" />
  <input type="hidden" name="type" value="<?=$_GET[type]?>" />
<div id="CodeWrap">
<div id="TabSwitch">
<ul>
<li><a href="admin.php?ac=index&fileurl=document&type=<?=$_GET[type]?>"><?=$news_title?></a></li>
<li class="active"><a href="admin.php?ac=file_type&fileurl=document&type=<?=$_GET[type]?>"><?=$news_title?>文件夹列表</a></li>
<li>
<img src="themes01/default/images/addicon.gif" width="10" height="10" />&nbsp;<a href="admin.php?ac=file_type_add&fileurl=document&type=<?=$_GET[type]?>">新建文件夹</a></li>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus">
</label>
</div>
</div>

<div id="CodeShowBlock">
<TABLE cellSpacing=0 cellPadding=0 border=0 width=98% style="border-left:1px solid #CCCCCC;border-right:1px solid #CCCCCC;">
			<tr><td>
			<?php
			if($_GET[type]=='1'){
			$wheresql=" and uid='".$_USER->id."'";
			}
			global $db;
	        $query = $db->query("SELECT * FROM ".DB_TABLEPRE."document_type where father='0' and type='".$_GET[type]."' $wheresql ORDER BY id Asc  ");
			while ($row = $db->fetch_array($query)) {
			$rsfnow = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."document_type where father='".$row[id]."' and type='".$_GET[type]."' ORDER BY id desc limit 0,1");
			?>
			<TABLE cellSpacing=0 cellPadding=0 border=0 width=100%>
          <TR HEIGHT=22 onclick=D<?=$row['id']?>.click() id=D<?=$row['id']?>TR class=TableDetail2>
         <TD class=MemoTD width=32><IMG class=outline id=D<?=$row['id']?> src="themes01/default/images/<?php if($rsfnow[id]!=''){?>collapsed.gif<?php }else{?>down.gif<?php }?>"></TD>
          <TD class=MemoTD><?=$row['title']?>&nbsp;&nbsp;(<font color="#006600"><?=GET_INC_USER_NAME($row['uid'])?></font>)</TD>
		  <TD width="100" align="right" class=MemoTD>
		  <?php get_url_list_key("编辑","admin.php?ac=file_type_edit&do=edit&fileurl=document&type=".$_GET['type']."&id=".$row['id']."","".$row['uid']!=$_USER->id)?>
		  <?php
			
	       if($rsfnow[id]==''){
		   ?>
		   | 
		   <?php get_url_list_key("删除","admin.php?ac=file_type&fileurl=document&do=delete&type=".$_GET['type']."&id=".$row['id']."","".$row['uid']!=$_USER->id)?>
		   <?php
		   }
		   ?>&nbsp;&nbsp;
		   </TD>
            </TR>
            </TABLE>
			<?php
			
	       if($rsfnow[id]!=''){
	      get_document_type_list($row['id'],0,0,$_USER->id);
	       }
			
			}
			?>
			</td></tr></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">

  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>


</div>
</div>
 

 
</body>
</html>
